package com.enation.app.javashop.framework.controller;

import com.enation.app.javashop.framework.sncreator.SnCreator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试sn生成
 * @author kingapex
 * @version 1.0
 * @since 7.1.0
 * 2020/4/20
 */
@RestController
@RequestMapping("/")
public class TestController {

    @Autowired
    SnCreator snCreator;

    @GetMapping("/test")
    public String test() {
        String id = snCreator.create(1);
        return id;
    }
}
